package com.travel.entity;

import org.springframework.stereotype.Component;
import com.travel.entity.TUser;

@Component
public class TShopcar   {
  private int shopcarId;
  private TUser user;
  private TAttractions attractions;
  private int ticketNumber;
  private double orderPrice;

  @Override
  public String toString() {
    return "TShopcar{" +
            "shopcarId=" + shopcarId +
            ", user=" + user +
            ", attractions=" + attractions +
            ", ticketNumber=" + ticketNumber +
            ", orderPrice=" + orderPrice +
            '}';
  }

  public int getShopcarId() {
    return shopcarId;
  }

  public void setShopcarId(int shopcarId) {
    this.shopcarId = shopcarId;
  }

  public TUser getUser() {
    return user;
  }

  public void setUser(TUser user) {
    this.user = user;
  }

  public TAttractions getAttractions() {
    return attractions;
  }

  public void setAttractions(TAttractions attractions) {
    this.attractions = attractions;
  }

  public int getTicketNumber() {
    return ticketNumber;
  }

  public void setTicketNumber(int ticketNumber) {
    this.ticketNumber = ticketNumber;
  }

  public double getOrderPrice() {
    return orderPrice;
  }

  public void setOrderPrice(double orderPrice) {
    this.orderPrice = orderPrice;
  }

  public TShopcar() {
  }

  public TShopcar(int shopcarId, TUser user, TAttractions attractions, int ticketNumber, double orderPrice) {
    this.shopcarId = shopcarId;
    this.user = user;
    this.attractions = attractions;
    this.ticketNumber = ticketNumber;
    this.orderPrice = orderPrice;
  }
}
